package factory;

import life.impl.ABoLifeImpl;
import life.impl.AXinLifeImpl;
import life.interfaces.Life;
import work.interfaces.Work;

/**
 * @author ItJianGe
 * @data 2024/7/18 17:15
 */
public class LifeFactory extends AbstractFactory {
    @Override
    public Life getLife(String lifeType) {
        return switch (lifeType) {
            case "abolife" -> new ABoLifeImpl();
            case "axinlife" -> new AXinLifeImpl();
            default -> null;
        };
    }

    @Override
    public Work getWork(String workType) {
        return null;
    }
}
